package com.hssy.wululuaplan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 邀请码记录
 * </p>
 *
 * @author Mr.Hongtao
 * @since 2025-06-19
 */
@Getter
@Setter
@TableName("invite_code_record")
@ApiModel(value = "InviteCodeRecord对象", description = "邀请码记录")
public class InviteCodeRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("注解id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id  (创建人)")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("邀请码")
    @TableField("invite_code")
    private String inviteCode;

    @ApiModelProperty("状态   0：失效   1：有效 ")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty("有效期")
    @TableField("expire_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expireTime;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private Date updateTime;


}
